package com.tlgen.orm.model;

/**
 * 中间表数据
 */
public class MiddleParams {

    /**
     * 映射表类型
     */
    private Class<?> mappingClass;


    /**
     * 中间表名称
     */
    private String tableName;

    /**
     * 表的映射关联表名
     */
    private String mappingTableName;

    /**
     * 表的映射关联字段
     */
    private String mappingColumn;

    public Class<?> getMappingClass() {
        return mappingClass;
    }

    public void setMappingClass(Class<?> mappingClass) {
        this.mappingClass = mappingClass;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getMappingTableName() {
        return mappingTableName;
    }

    public void setMappingTableName(String mappingTableName) {
        this.mappingTableName = mappingTableName;
    }

    public String getMappingColumn() {
        return mappingColumn;
    }

    public void setMappingColumn(String mappingColumn) {
        this.mappingColumn = mappingColumn;
    }

    public MiddleParams(Class<?> mappingClass, String tableName, String mappingTableName, String mappingColumn) {
        this.mappingClass = mappingClass;
        this.tableName = tableName;
        this.mappingTableName = mappingTableName;
        this.mappingColumn = mappingColumn;
    }

    public MiddleParams() {
    }

    @Override
    public String toString() {
        return "MiddleParams{" +
                "mappingClass=" + mappingClass +
                ", mappingClass=" + mappingClass +
                ", tableName='" + tableName + '\'' +
                ", mappingTableName='" + mappingTableName + '\'' +
                ", mappingColumn='" + mappingColumn + '\'' +
                '}';
    }

}
